/**
 * avRecMainThrd.h
 */

#ifndef __RECMAINTHRD_H__
#define __RECMAINTHRD_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <pthread.h>

#include <Ipc.h>
#include <capturer.h>
#include "avRecThrd.h"

typedef struct {
	RecParam recParam;	// .alarming is for alarm record only
	Capturer *pCapturer;	// for scheme record only
	tDispatch *pDisp;	// point to chnvid h264dispatch
	bool recording;	// current record status
	bool *pQuit;
	pthread_t tid;
	pthread_mutex_t lock;
} RecEnv;

/**
 * record main thread, will create alarm record and scheme record
 * @param
 *		arg		input	a Capture list
 * @return
 *		NULL
 */
void *recMainThrd(void *arg);

#ifdef __cplusplus
}
#endif

#endif	// __RECMAINTHRD_H__

